

var msg = sessionStorage.getItem("text");
$('#neirong').html(msg);
var result = sessionStorage.getItem("data")
/*请求改价*/
function submit(){
    // var index = parent.location.reload();
    // parent.aaa.close(parent.layer.getFrameIndex(window.name))
    // console.log(parent.aaa.close())
    var formData = new FormData();
    formData.append("password",$("#mima").val());
    $.ajax({
        url: root.orderInter.checkPriceRevisionPwd,
        //禁用缓存
        cache: false,
        type: "POST",
        // 告诉jQuery不要去处理发送的数据
        processData : false,
        // 告诉jQuery不要去设置Content-Type请求头
        contentType : false,
        data: formData,
        success: function (data) {
            console.log(data)
            if (data.sub_msg=="SUCCESS"){
                console.log(result)
                parent.fangfa(result)
                sessionStorage.setItem("status","SUCCESS");
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);

            }else if (data.sub_code=="30"){
                sessionStorage.setItem("status","ERRNO");
                $.Huimodalalert('密码为8-20位字母，数字两项组合',2000);
            }else if (data.sub_code=="31"){
                sessionStorage.setItem("status","ERRNO");
                $.Huimodalalert('密码不能为空',2000);
            } else {
                sessionStorage.setItem("status","ERRNO");
                $.Huimodalalert('密码错误,您还有无限次机会',2000);
            }
        }
    });
}
function removeIframe(){
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
}